<template lang="">
    <div>
        <input :type="typeText" value="123456">
        <button @click="$emit('change')">
            切换
        </button>
    </div>
</template>
<script>
export default {
    props: {
        typeText: {
            type: String,
            default: 'password'
        }
    }
}
</script>
<style lang="">
    
</style>